// 默认为POST application/x-www-form-urlencode
const post = ['POST', 'application/x-www-form-urlencode']
const list = {
    城市档案: '/citys',
    关注领域: '/focus',
    所属行业: '/industry',
    主营范围: '/business',
    学校名称: '/versity',
    所学专业: '/specialty',
    最高学历: '/education',
    举报原因: '/tipoff',
    常见问题: '/question'
}
for (const key in list) {
    const url = list[key]
    list[key + 'Add'] = [url + url + 'Add', ...post]
    list[key + 'Update'] = [url + url + 'Update', ...post]
    list[key + 'Delete'] = [url + url + 'Delete', ...post]
    list[key + 'exportExcel'] = [url + '/exportExcel', ...post]
    list[key] = [url + url + 'List', ...post]
}
export default {
    // 版本管理
    version_list: ['/version/getVersionList', 'POST'],
    version_add: ['/version/addVersion', 'POST'],
    version_del: ['/version/deleteVersion', 'POST'],
    version_switch: ['/version/updateForceUp', 'POST'],

    // 基础档案
    ...list,

    // 下载导出的表格
    表格: ['/common/download'],

    // 参数配置
    参数列表: ['/paramConfig/all'],
    保存参数: ['/paramConfig/paramConfigs', 'POST', 'JSON'],
    查询日志: ['/paramConfig/paramConfigLog'],

    // 内容推荐
    contentRecommendList: ['/contentRecommend/list', 'POST', 'JSON'],
    contentRecommendRemove: ['/contentRecommend/cancelRecommend', 'POST', 'JSON'],
    contentRecommendExport: ['/contentRecommend/export', 'POST', 'JSON'],
    contentRecommendMove: ['/contentRecommend/move', 'POST', 'JSON'],
    contentRecommendTop: ['/robot/updateTopicStatus', 'post'],

    // 用户推荐
    userRecommendList: ['/recommend/recommendList', 'POST'],
    userRecommendExport: ['/recommend/exportExcel', 'POST'],
    userRecommendTop: ['/recommend/topAndUntop', 'POST'],
    userRecommendMove: ['/recommend/topAndBottom', 'POST'],
    userRecommendRemove: ['/recommend/batchRemove', 'POST'],

    // 协议规则
    rule_list: ['/rule/getRuleList', 'POST'],
    rule_add: ['/rule/addRule', 'POST'],
    rule_modif: ['/rule/updateRule', 'POST'],

    // 标签管理
    tag_list: ['/tag/getTagList', 'POST'],
    tag_add: ['/tag/addTag', 'POST'],
    tag_del: ['/tag/deleteTag', 'POST'],
    tag_select: ['/tag/getTagAll', 'POST'],
    tag_modif: ['/tag/updateTag', 'POST'],

    // 人工审核
    article_list: ['/manualReview/articles', 'POST', 'JSON'],
    article_check: ['/manualReview/reviewArticle', 'POST', 'JSON'],
    article_ask: ['/manualReview/questions', 'POST', 'JSON'],
    tabs_number: ['/manualReview/countReview', 'GET', 'JSON'],
    msg_list: ['/manualReview/dynamics', 'POST', 'JSON'],
    comment_list: ['/manualReview/comments', 'POST', 'JSON'],
    reply_list: ['/manualReview/questionAnswers', 'POST', 'JSON'],

    // 机器人审核
    robot_list: ['/robot/checkList', 'POST'],
    robot_getZan: ['/robot/approvalsAndBrowses', 'POST'],
    robot_addZan: ['/robot/addThumbsUp', 'POST'],
    robot_off: ['/robot/updateStatus', 'POST'],
    robot_recommend: ['/robot/updateRecommendStatus', 'POST'],
    robot_excel: ['/robot/exportExcel', 'POST'],

    // 内容监控
    watch_list: ['/content/contentList', 'POST'],
    watch_excel: ['/content/exportExcel', 'POST'],

    // 详情
    article_detail: ['/content/articleDetail', 'GET'], // mock/71/content/articleDetail
    dynamic_detail: ['/content/dynamicDetail', 'GET'],
    ask_detail: ['/content/questionDetail', 'GET'],
    answer_detail: ['/content/answerDetail', 'GET'],
    comment_detail: ['/content/commentDetail', 'GET'],
    export_detail: ['/content/exportContentDetailList', 'POST', 'JSON'],

    // 详情 - 收益
    article_income: ['/content/articleDetailIncomeList', 'POST', 'JSON'],
    comment_income: ['/content/contentCommentList', 'POST', 'JSON'],
    comment_income2: ['/content/contentSubCommentList', 'POST', 'JSON'],
    reply_income: ['/content/questionDetailAnswerList', 'POST', 'JSON'],
    content_income: ['/content/contentDetailList', 'POST', 'JSON'],
    content_total: ['/content/detailListCount', 'GET'],

    // 风险防控
    danger_list: ['/risk/list', 'GET', 'JSON'],
    danger_status: ['/risk/status', 'POST', 'JSON']
}
